#git clone https://github.com/Avanti1980/archlinux/Config/ ~/Config # 下载配置文件
#mv ~/Config/dotfiles/* ~/

# 自动挂载Windows分区
mkdir -p /home/avanti/Windows/System /home/avanti/Windows/Data
echo -e "UUID=0A9AD66165F33762 /home/avanti/Windows/System ntfs-3g defaults 0 0\n" >>/etc/fstab
echo -e "UUID=299D817A2D97AD94 /home/avanti/Windows/Data ntfs-3g defaults 0 0\n" >>/etc/fstab

# 配置lightdm
mkdir /usr/share/backgrounds
cp /home/avanti/.config/awesome/themes/avanti/wallpaper.jpg /usr/share/backgrounds/wallpaper.jpg
sed -i 's/greeter-session=lightdm-gtk-greeter/greeter-session=lightdm-slick-greeter/g' /etc/lightdm/lightdm.conf
echo \[Greeter\] >/etc/lightdm/slick-greeter.conf
echo background=/usr/share/backgrounds/wallpaper.jpg >>/etc/lightdm/slick-greeter.conf
echo draw-grid=false >>/etc/lightdm/slick-greeter.conf
echo enable-hidpi=on >>/etc/lightdm/slick-greeter.conf
echo xft-dpi=192.0 >>/etc/lightdm/slick-greeter.conf

fc-cache -fv
